package com.sunday.common.base;

import android.app.Application;

import com.sunday.common.logger.Logger;
import com.sunday.common.volley.RequestQueue;
import com.sunday.common.volley.toolbox.Volley;


/**
 * Created by Administrator on 2015/6/9.
 */
public class BaseApplication extends Application{

    protected RequestQueue mRequestQueue;


    @Override
    public void onCreate() {
        super.onCreate();
        Logger.init("Sunday").hideThreadInfo().setMethodCount(3).setMethodOffset(2);

    }

    public RequestQueue getRequestQueue() {
        if(mRequestQueue==null){
            mRequestQueue = Volley.newRequestQueue(getApplicationContext());
        }
        return mRequestQueue;
    }

}
